//用 Rand7() 实现 Rand10()
class Solution extends SolBase {
    public int rand10() {
        //拒绝采样不是很理解
        int num;
        do{
            num = (rand7()-1)*7+rand7();

        }while(num>10);
        return num;

    }
}